package org.lsb.app_back.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.lsb.app_back.domain.BackendUser;

import java.util.Optional;

/**
* @author 刘帅博
* @description 针对表【backend_user】的数据库操作Mapper
* @createDate 2025-03-16 16:36:04
* @Entity generator.domain.BackendUser
*/
public interface BackendUserMapper {

    int deleteByPrimaryKey(Long id);

    int insert(BackendUser record);

    int insertSelective(BackendUser record);

    BackendUser selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(BackendUser record);

    int updateByPrimaryKey(BackendUser record);


    @Select("SELECT * FROM backend_user WHERE userCode = #{userCode} AND userPassword = #{password}")
    BackendUser findByUserCodeAndPassword(@Param("userCode") String userCode, @Param("password") String password);

}


